package com.erp.erp_servers.WjInfo;

import com.erp.erp_entitys.WjInfo.WjInfoEntity;
import com.erp.erp_entitys.WjInfo.WjInfoExample;
import com.erp.erp_entitys.WjInfo.WjInfoVoEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IWjInfoService {
    long countByExample(WjInfoExample example);

    int deleteByExample(WjInfoExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(WjInfoEntity record);

    int insertSelective(WjInfoEntity record);

    List<WjInfoEntity> selectByExample(WjInfoExample example);

    WjInfoEntity selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") WjInfoEntity record, @Param("example") WjInfoExample example);

    int updateByExample(@Param("record") WjInfoEntity record, @Param("example") WjInfoExample example);

    int updateByPrimaryKeySelective(WjInfoEntity record);

    int updateByPrimaryKey(WjInfoEntity record);

    List<WjInfoVoEntity> selectByName2(@Param("record") WjInfoEntity record);
    //根据文件目录与文件名判断是否已存在重名的
    int distinctByName(@Param("record") WjInfoEntity record);
    int queryFileCount(String name);
}
